package model

import (
	"shyxy-net/common/consul"
	"shyxy-net/pkg/grpc"
)

type I interface {
	ListModels() ([]string, error)
	GetRpcServerBackendByModelName(modelName string) (grpc.Backend, error)
	CheckIfModelExists(modelName string) (bool, error)
}

type Service struct {
	client *consul.Server
}

func New(client *consul.Server) *Service {
	return &Service{
		client: client,
	}
}
